package com.example.demo.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

@TableName("customer")
public class Customer implements Serializable {
    @TableId(value ="cid",type = IdType.AUTO)
    private Integer id;
    private String name;
    private String password;
    private String sex;
    private String telephone;
    private String Sno;
    private String address;

/*    public Customer(Integer id, String name, String password, String sex, String telephone, String sno, String address) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.sex = sex;
        this.telephone = telephone;
        Sno = sno;
        this.address = address;
    }*/

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getSno() {
        return Sno;
    }

    public void setSno(String sno) {
        Sno = sno;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public String toString() {
        return "Customer{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", sex='" + sex + '\'' +
                ", telephone='" + telephone + '\'' +
                ", Sno='" + Sno + '\'' +
                ", address='" + address + '\'' +
                '}';
    }
}
